package com.inspur.icity.bus.base.core.gaoderesult;

import com.google.gson.annotations.SerializedName;

import java.util.List;
import java.util.regex.Matcher;
import java.util.regex.Pattern;

/**
 * Created by jn-dinggao on 2017/12/20.
 * 公交导航路段信息
 */
public class BuslineResult {

    /**
     * 起乘站
     */
    @SerializedName("departure_stop")
    private StopResult departureStop;
    /**
     * 下车站
     */
    @SerializedName("arrival_stop")
    private StopResult arrivalStop;
    /**
     * 公交路线名称
     */
    private String name;
    /**
     * 公交线路方向
     */
    private String direction;
    /**
     * 公交类型
     */
    private String Type;
    /**
     * 公交行驶距离
     */
    private String distance;
    /**
     * 公交预计行驶时间
     */
    private String duration;
    /**
     * 路段坐标集
     */
    private String polyline;
    /**
     * 首班车时间
     */
    private String startTime;
    /**
     * 末班车时间
     */
    private String endTime;
    /**
     * 途径公交站数
     */
    @SerializedName("via_num")
    private String viaNum;
    /**
     * 途径站列表
     */
    @SerializedName("via_stops")
    private List<StopResult> viaStops;
    /**
     * 途径公交站点信息
     */
    private String stop;
    /**
     * 公交站点经纬度
     */
    private String location;

    public StopResult getDepartureStop() {
        return departureStop;
    }

    public void setDepartureStop(StopResult departureStop) {
        this.departureStop = departureStop;
    }

    public StopResult getArrivalStop() {
        return arrivalStop;
    }

    public void setArrivalStop(StopResult arrivalStop) {
        this.arrivalStop = arrivalStop;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getLocation() {
        return location;
    }

    public void setLocation(String location) {
        this.location = location;
    }

    public String getType() {
        return Type;
    }

    public void setType(String type) {
        Type = type;
    }

    public String getDistance() {
        return distance;
    }

    public void setDistance(String distance) {
        this.distance = distance;
    }

    public String getDuration() {
        return duration;
    }

    public void setDuration(String duration) {
        this.duration = duration;
    }

    public String getPolyline() {
        return polyline;
    }

    public void setPolyline(String polyline) {
        this.polyline = polyline;
    }

    public String getStartTime() {
        return startTime;
    }

    public void setStartTime(String startTime) {
        this.startTime = startTime;
    }

    public String getEndTime() {
        return endTime;
    }

    public void setEndTime(String endTime) {
        this.endTime = endTime;
    }

    public String getViaNum() {
        return viaNum;
    }

    public void setViaNum(String viaNum) {
        this.viaNum = viaNum;
    }

    public List<StopResult> getViaStops() {
        return viaStops;
    }

    public void setViaStops(List<StopResult> viaStops) {
        this.viaStops = viaStops;
    }

    public String getStop() {
        return stop;
    }

    public void setStop(String stop) {
        this.stop = stop;
    }

    public String getDirection() {
        return direction;
    }

    public void setDirection(String direction) {
        this.direction = direction;
    }

    @Override
    public String toString() {
        return "BuslineResult{" +
                "departureStop='" + departureStop + '\'' +
                ", arrivalStop='" + arrivalStop + '\'' +
                ", name='" + name + '\'' +
                ", direction='" + direction + '\'' +
                ", Type='" + Type + '\'' +
                ", distance='" + distance + '\'' +
                ", duration='" + duration + '\'' +
                ", polyline='" + polyline + '\'' +
                ", startTime='" + startTime + '\'' +
                ", endTime='" + endTime + '\'' +
                ", viaNum='" + viaNum + '\'' +
                ", viaStops='" + viaStops + '\'' +
                ", stop='" + stop + '\'' +
                ", location='" + location + '\'' +
                '}';
    }


}
